<form id="pagerForm" method="post" action="">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keyword" value="{{.keyword}}" />
	<input type="hidden" name="pageNum" value="{{.paginator.Page}}" />
	<input type="hidden" name="numPerPage" value="{{.paginator.PerPageNums}}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>
<script type="text/javascript">
  
 
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/admin/service/list" method="post">
	<div class="searchBar">
		 
		<table class="searchContent">
			<tr>
				<td>
					命令名称：<input type="text" name="keyword"  value="{{.keyword}}" />
				</td>
				 
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				 
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/admin/cmd/add" target="dialog"><span>添加</span></a></li>
			<li><a class="delete" href="/admin/cmd/del?id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="/admin/cmd/mdy?id={sid_user}" target="dialog"><span>修改</span></a></li>  
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="138">命令名称</th>  
				<th width="138">添加日期</th>
				 <th width="138">修改日期</th>
				<th width="138">查看</th> 
			</tr>
		</thead>
		<tbody>
		{{range .commands}}
			<tr target="sid_user" rel="{{.Id}}">
				<td>{{.Name}}</td> 
				<td>{{dateformat .CreateTime "2006-01-02"}}</td>
				<td>{{dateformat .ModifyTime "2006-01-02"}}</td> 
				<td>
                <a class="buttonActive" href="javascript:#;" ><span>查看</span></a>				
				</td> 
			</tr>
		{{end}}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option {{if eq .paginator.PerPageNums 20}}selected{{end}} value="20">20</option> 
				<option {{if eq .paginator.PerPageNums 50}}selected{{end}} value="50">50</option>
				<option {{if eq .paginator.PerPageNums 100}}selected{{end}} value="100">100</option>
				<option {{if eq .paginator.PerPageNums 200}}selected{{end}} value="200">200</option>
			</select>
			<span>条，共{{.paginator.Nums}}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{{.paginator.Nums}}" numPerPage="{{.paginator.PerPageNums}}" 
		{{if gt .paginator.PageNums 10}}
		pageNumShown="10" 
		{{else}}
		pageNumShown="{{.paginator.PageNums}}" 
		{{end}}
		currentPage="{{.paginator.Page}}"></div>
       
	</div>
</div>
